package com.lxm.dao;

import com.lxm.entity.Emp;
import com.lxm.util.SpringTest;
import org.junit.Test;

public class TestDao extends SpringTest {
    @Test
    public void test1(){
        EmpDao dao=super.getContext().getBean(EmpDao.class);
        Emp emp=dao.findByName("zhangsan");
        if(emp == null){
            System.out.println("用户名不存在");
        }else {
            System.out.println(emp.getEname()+","+emp.getPwd());
        }
    }
}
